public class SumUtils {
    public void getsum(int a,int b){
        System.out.println("整数相加的和为:"+(a+b));
    }
    public void getsum(double c,double d){
        System.out.println("小数相加的和为："+(c+d));
    }
    public void getsum(String e,String f){
        System.out.println("字符串相加的值为："+(e+","+f));
    }
    public void getsum(int g){
        int sum=0;
        for (int i = 1; i <=g ; i++) {
            sum+=i;
        }
        System.out.println("1到"+g+"的整数和是："+sum);
    }
}

class testSumUtils {
    public static void main(String[] args) {
        SumUtils a = new SumUtils();
        a.getsum(42, 16);
        a.getsum(34.1, 21.6);
        a.getsum("hello", "world");
        a.getsum(9);
    }
}